package com.ld.security.server.admin.modules.gl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.anno.IdKey;
import com.ld.security.common.core.base.column.ListJson;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.ESortEntity;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("gl_enum")
@ApiModel("全局字典")
@Data
public class GlEnumEntity  extends SuperEntity
{



    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("编码")
    private String code;




    @SqlKey(SqlCondition.like)
    @ApiModelProperty("名称")
    private String label;


    @ApiModelProperty("配置")
    private ListJson config;

    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("分类")
    private String parentEnum;


    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("字段名")
    private String fieldName;

    @SqlKey(SqlCondition.like_right)
    @ApiModelProperty("分类")
    private String typeName;

    @SqlKey(SqlCondition.like_right)
    @ApiModelProperty("包名")
    private String packName;

    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("服务名")
    private String serverName;



    @IdKey({"packName","typeName","fieldName","code"})
    @Override
    public String getId() {
        return super.getId();
    }
}
